package com.summer.safe.quartz.config;



import com.summer.safe.quartz.utils.TaskUtils;
import com.summer.safe.quartz.entity.QuartzJob;
import org.quartz.DisallowConcurrentExecution;

/**
 * 任务处理---不允许并发
 * 
 *
 */
@DisallowConcurrentExecution
public class QuartzJobFactoryDisallowConcurrentExecution extends QuartzAbstract {

	/**
	 * 执行方法
	 * @param quartzJob
	 * @throws Exception
	 */
	@Override
	protected void runExecute(QuartzJob quartzJob) throws Exception {
		TaskUtils.methodInvok(quartzJob);

	}
}